package com.cet.designpatterns.decorator;

/**
 * @program: algorithm
 * @description: 抽象构件
 * @author: 陈恩涛
 * @create: 2021-09-09 22:36
 **/
public abstract class Drink {

    /**
     * 描述
     */
    private String des;

    private double price = 0.0;

    public String getDes() {
        return des;
    }

    public void setDes(String des) {
        this.des = des;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    /**
     * 计算总价
     * @return
     */
    public abstract double cost();
}
